const mongoose = require('mongoose')

const LogSchema = new mongoose.Schema({
  facilityName: { type: String, required: true },
  status: { type: Number, default: 200, required: true },
  time: { type: Date, select: true, required: true },
  event: { type: String, required: true }
})

const Log = mongoose.model('Log', LogSchema, 'log')

module.exports = Log
